package zhoufu.sz.sanxiao_check.ui.check;

import zhoufu.sz.sanxiao_check.R;
import zhoufu.sz.sanxiao_check.inject.HasComponent;
import zhoufu.sz.sanxiao_check.inject.components.DaggerLoginComponet;
import zhoufu.sz.sanxiao_check.inject.components.LoginComponet;
import zhoufu.sz.sanxiao_check.ui.basic.BaseMsgActivity;

/**
 * User:RCP
 * email:ruancaipu@gmail.com
 * Date:2016/7/30
 */
public class CheckMainActivity extends BaseMsgActivity implements HasComponent<LoginComponet>
{

    LoginComponet loginComponet;

    @Override protected void initInject()
    {
        setTitle(R.string.title_basic_item5);

        loginComponet = DaggerLoginComponet.builder().appComponent(getAppComponent())
                .activityModule(getActivityModule()).build();
        loginComponet.inject(this);
        addFragment(R.id.main_fram, new FireCheckMainFragment());
    }

    @Override protected int setIndividualId()
    {
        return R.layout.layout_frame;
    }

    @Override public LoginComponet getComponent()
    {
        return loginComponet;
    }
}
